package com.zf.spring.microservice.zuul.common;

public class MergeStepInfo {
	private String name;
	// request path
	private String path;
	private String fullPath;
	// http method support(post/get/delete)
	private String method;
	/** 
	 * post data content. 支持解析上一个step的返回值作为当前step的参数，语法参考jsonPath
	 * @see https://github.com/jayway/JsonPath
	 * */
	private String data;
	// next step
	private String then;
	private String location;
	private String result;
	private String contentType;
	/**
	 * @return the path
	 */
	public String getPath() {
		return path;
	}

	/**
	 * @param path
	 *            the path to set
	 */
	public void setPath(String path) {
		this.path = path;
	}

	/**
	 * @return the method
	 */
	public String getMethod() {
		return method;
	}

	/**
	 * @param method
	 *            the method to set
	 */
	public void setMethod(String method) {
		this.method = method;
	}

	/**
	 * @return the data
	 */
	public String getData() {
		return data;
	}

	/**
	 * @param data
	 *            the data to set
	 */
	public void setData(String data) {
		this.data = data;
	}

	/**
	 * @return the then
	 */
	public String getThen() {
		return then;
	}

	/**
	 * @param then
	 *            the then to set
	 */
	public void setThen(String then) {
		this.then = then;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "MergeStepInfo [name=" + name + ", path=" + path + ", method="
				+ method + ", data=" + data + ", then=" + then + ", location="
				+ location + "]";
	}

	/**
	 * @return the location
	 */
	public String getLocation() {
		return location;
	}

	/**
	 * @param location the location to set
	 */
	public void setLocation(String location) {
		this.location = location;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the result
	 */
	public String getResult() {
		return result;
	}

	/**
	 * @param result the result to set
	 */
	public void setResult(String result) {
		this.result = result;
	}

	/**
	 * @return the contentType
	 */
	public String getContentType() {
		return contentType;
	}

	/**
	 * @param contentType the contentType to set
	 */
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	/**
	 * @return the fullPath
	 */
	public String getFullPath() {
		return fullPath;
	}

	/**
	 * @param fullPath the fullPath to set
	 */
	public void setFullPath(String fullPath) {
		this.fullPath = fullPath;
	}

	
}
